package com.wangxiang.shop.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangxiang.common.utils.PageEntity;
import com.wangxiang.common.utils.PageUtils;
import com.wangxiang.shop.member.entity.CartEntity;
import com.wangxiang.shop.member.entity.MemberEntity;
import com.wangxiang.shop.member.entity.ShopCartEntity;
import com.wangxiang.shop.member.entity.SkuEntity;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author wangxiang
 * @email 2293672863@qq.com
 * @date 2022-04-05 22:22:19
 */
public interface ShopCartService extends IService<ShopCartEntity> {

    int add(HashMap<String,String> map, List<SkuEntity> skuEntityList);

    List<ShopCartEntity> list(int userId);

    ShopCartEntity info(int cartId);

    void updateStatus(int cartId);

    PageEntity page(PageEntity page);

    List<HashMap<String,Integer>> updateWare(List<Integer> cartId);

    List<CartEntity> getCartEntity(List<ShopCartEntity> entities);

    PageEntity search(HashMap<String , Object> map);
    List<CartEntity> getCartEntityBySearch(List<ShopCartEntity> entities , String name);





}

